# The Quoroboros makefile

OBJDIR := obj-intel64/
DLL_SUFFIX := .dylib

clean:
	-rm -rf $(OBJDIR) *.out *.log *.tested *.failed *.d *makefile.copy *.exp *.lib

$(PIN_TOOLS)/SimpleExamples/$(OBJDIR)bbl_queue$(DLL_SUFFIX): bbl_queue.cpp
	cp bbl_queue.cpp $(PIN_TOOLS)/SimpleExamples/
	make -C $(PIN_TOOLS)/SimpleExamples $(OBJDIR)bbl_queue$(DLL_SUFFIX)

bbl_queue: $(PIN_TOOLS)/SimpleExamples/$(OBJDIR)bbl_queue$(DLL_SUFFIX)
	make $(PIN_TOOLS)/SimpleExamples/$(OBJDIR)bbl_queue$(DLL_SUFFIX)

hme:
	ghc --make -Wall miscellaneous_utilities.hs graph_utilities.hs interface_utilities.hs queue_monster.hs

cme:
	gcc -Wall -g -o quoroboros_workhorse -I/opt/local/include -lpcre quoroboros_workhorse.c pointer_set.c parse_cfg_file.c

runstuff:
	~/Research/QueueExperimentCode/simple_run_pin.sh -o_base /tmp/zzzz07/bbl_cfg -- runspec --config=quor-gcc-v1 --size=test --noreportable --tune=base --iterations=1 gcc
